package com.example.abc.service;

import com.example.abc.entity.UserAuthority;
import com.example.abc.web.IndexController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.example.abc.repository.UserAuthorityDao;

@Service
public class UserAuthorityService {
    public static final Logger logger = LoggerFactory.getLogger(UserAuthorityService.class);
    @Resource
    private UserAuthorityDao userAuthorityDao;

    public int insert(UserAuthority pojo) {
        return userAuthorityDao.insert(pojo);
    }

    public int insertList(List<UserAuthority> pojos) {
        return userAuthorityDao.insertList(pojos);
    }

    public List<UserAuthority> findByUid(String uid) {
        return userAuthorityDao.findByUid(uid);
    }
}
